/**
 * 
 */
package org.rvk.vms.web.controller.secure;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author Ashish Kumar Sinha <aksinha.mail@gmail.com>
 *
 */
@Controller
@RequestMapping(value="/secure/admin")
public class AdminController {

	@RequestMapping(value="/event")
	public ModelAndView event(HttpServletRequest request){
		request.setAttribute("page", "ADMIN");
		request.setAttribute("subpage", "EVENT");
		
		ModelAndView modelAndView = new ModelAndView("secure/admin/event") ;
		return modelAndView;
	}
	
	@RequestMapping(value="/user")
	public ModelAndView user(HttpServletRequest request){
		request.setAttribute("page", "ADMIN");
		request.setAttribute("subpage", "USER");
		
		ModelAndView modelAndView = new ModelAndView("secure/admin/user") ;
		return modelAndView;
	}
}
